package com.eway.viewanimator;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.animation.BounceInterpolator;
import android.view.animation.ScaleAnimation;
import android.widget.ImageView;

public class SplashActivity extends AppCompatActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);

		ImageView imageView = findViewById(R.id.img);

		ScaleAnimation scaleAnimation = new ScaleAnimation(0, 2f, 0, 2f, 0.5f, 0.5f);
		scaleAnimation.setDuration(6000);
		scaleAnimation.setInterpolator(new BounceInterpolator());
		scaleAnimation.setFillAfter(true);

		imageView.startAnimation(scaleAnimation);
	}
}
